export default {
  props: {
    to: {
      type: String,
      default: "",
      required: true
    },
    tag: {
      type: String,
      default: "a"
    },
  },
  render() {
    let tag = this.tag;
    let handler = () => {
      this.$router.push(this.to);
    }
    return <tag onclick={handler}>{this.$slots.default}</tag>
  }
}